#include<iostream>
#include"Server.hpp"
using namespace std;

int main()
{
    Serve serve;
    serve.OpenPipeForRead();
    string message;
    while(true)
    {
        if(serve.RecvPipe(&message)>0)
        {
            cout<<"Client say"<<message<<endl;
        }
        else
        {
            break;
        }
    }
    cout<<"client quit,me too"<<endl;

    serve.ClosePipe();
    return 0;
}